#ifndef __ILI9320_H__
#define __ILI9320_H__

#include "global.h"

#define LCD_WIDTH       320
#define LCD_HEIGHT      240

void LCD_Configuration(void);
void LCD_Initialization(void);
void LCD_Clear(uint16_t dat);
void LCD_BackLight(uint8_t status);
void LCD_SetPoint(uint16_t x, uint16_t y, uint16_t color);
uint16_t LCD_GetPoint(uint16_t Xpos, uint16_t Ypos);
void LCD_SetDisplayWindow(uint16_t Xpos, uint16_t Ypos, uint16_t Width, uint16_t Height);

void LCD_PutChar(uint16_t x, uint16_t y, uint8_t c, uint16_t charColor, uint16_t bkColor);
void LCD_VLine(uint16_t x0, uint16_t y0, uint16_t h, uint16_t color);


#define White          0xFFFF
#define Black          0x0000
#define Grey           0xF7DE
#define Blue           0x001F
#define Blue2          0x051F
#define Red            0xF800
#define Magenta        0xF81F
#define Green          0x07E0
#define Cyan           0x7FFF
#define Yellow         0xFFE0

#endif


